package com.pactera.madp.cp.common.config;


import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @title beta资讯配置
 * @author Deming.Chang
 * @date 2022-06-10
 */
@Data
@Configuration
@ConditionalOnExpression("!'${madp.beta}'.isEmpty()")
@ConfigurationProperties(prefix = "madp.beta")
public class BetaConfig {
    /**
     * 应用Key
     */
    private String appKey;
    /**
     * 应用Secret
     */
    private String appSecret;
    /**
     * beta接口host
     */
    private String host;
    /**
     * 是否开启下载
     */
    private Boolean downloadEnable;
    /**
     * 文件下载路径[绝对路径]
     */
    private String downloadDir;
    /**
     *文件相对路径[mfs路径]
     */
    private String mfsDir;
    /**
     * 图片后缀(下载的图片无需重命名)
     */
    private List<String> imageExtension = new ArrayList<>();
    /**
     * 忽略下载后缀(流媒体资源无需下载)
     */
    private List<String> ignoreExtension = new ArrayList<>();
}
